package com.bw.car.api

import com.bw.http.http.okhttp.HttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object CarPayHiltModel {
    @Provides
    @Singleton
    fun getCarPayModel(@HttpRetrofitAnnotation retrofit:Retrofit):CarPayApiServer{
        return retrofit.create(CarPayApiServer::class.java)
    }

}